// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import store from './store/index'; //引入store
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import axios from './api/axios'
import 'element-ui/lib/theme-chalk/index.css'
import promise from 'es6-promise'
import {API} from './api/api'
Vue.use(ElementUI)
Vue.config.productionTip = false
Vue.prototype.$axios = axios;   // 2、在vue中使用axios
Vue.prototype.$api = API;   // 3、api

promise.polyfill()
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
	axios,
  store,   
  components: { App },
  template: '<App/>'
})
